<?php echo form_open( uri_string() );?>
<table>
    <tr>
        <td>Kode</td>
        <td><input type="text" name="kode" id="kode" value="<?php echo set_value("kode", @$data['kode'])?>" />
            <?php echo form_error("kode",  '<span>', '</span>')?>
        </td>
    </tr>
    <tr>
        <td>Uraian</td>
        <td><input type="text" name="uraian" id="uraian" value="<?php echo set_value("uraian", @$data['uraian'])?>" />
            <?php echo form_error("uraian",  '<span>', '</span>')?>
    </tr> 
    <tr>
        <td><?php echo form_label('Uraian Akun Level1');?></td>
        <td><?php $selected_kr_akun_level1_kode = (@$data['kr_akun_level1_kode']) ? @$data['kr_akun_level1_kode'] : $selected_kr_akun_level1_kode; ?>
            <?php echo form_dropdown("kr_akun_level1_kode", $options_kr_akun_level1_kode, $selected_kr_akun_level1_kode)?></td>
        <td><?php echo form_error("kr_akun_level1_kode", "<p class='error'>", "</p>")?></td>
    </tr>
    <tr>
        <td><?php echo form_label('Uraian Akun Level2');?></td>
        <td><?php $selected_kr_akun_level2_kode = (@$data['kr_akun_level2_kode']) ? @$data['kr_akun_level2_kode'] : $selected_kr_akun_level2_kode; ?>
            <?php echo form_dropdown("kr_akun_level2_kode", $options_kr_akun_level2_kode, $selected_kr_akun_level2_kode)?></td>
        <td><?php echo form_error("kr_akun_level2_kode", "<p class='error'>", "</p>")?></td>
    </tr>
    <tr>
        <td><?php echo form_label('Uraian Akun Level3');?></td>
        <td><?php $selected_kr_akun_level2_kode = (@$data['kr_akun_level3_kode']) ? @$data['kr_akun_level3_kode'] : $selected_kr_akun_level3_kode; ?>
            <?php echo form_dropdown("kr_akun_level3_kode", $options_kr_akun_level3_kode, $selected_kr_akun_level3_kode)?></td>
        <td><?php echo form_error("kr_akun_level3_kode", "<p class='error'>", "</p>")?></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="submit" value="Simpan" /></td>
    </tr>
        <?php echo form_close()?>
</table>